package lanqiao;

import java.time.DayOfWeek;
import java.time.LocalDate;

public class GoodDate {
    public static void main(String[] args) {
        int count = 0;
        LocalDate startDate = LocalDate.of(1901, 1, 1);
        LocalDate endDate = LocalDate.of(2024, 12, 31);
        while (!startDate.isAfter(endDate)) {
            int dayOfMonth = startDate.getDayOfMonth();
            DayOfWeek dayOfWeek = startDate.getDayOfWeek();
            if (dayOfMonth % 10 == 1 && dayOfWeek == DayOfWeek.MONDAY) {
                count++;
            }
            startDate = startDate.plusDays(1);
        }
        System.out.println(count);
    }
}
